import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userInfo: {
      'name': 'gyw',
      'gender': '男',
      'sign': 'Hello World',
      'address': '张家口'
    }
  },
  mutations: {
    udpateUserInfo (state, data) {
      console.log(data)
      state.userInfo = data
    }
  }
})
